package com.mysweethome.service.impl;

import org.springframework.util.Assert;

import com.mysweethome.entity.User;
import com.mysweethome.service.AuthService;

public class AuthServiceImpl implements AuthService {

	@Override
	public boolean authentificate(User user) {
		Assert.notNull(user);
		if (user.getName().equals("fed") && user.getPassword().equals("fed"))
			return true;
		return false;
	}

}
